createShape

abstract fun createShape(type: ShapeType): DesignBlock

Create a new shape, fails if type is unknown.

Return

the created shape's handle.

Parameters

type

the type of the shape object that shall be created.


abstract fun createShape(type: String): DesignBlock

Deprecated

Use type safe overload instead.

Replace with

this.createShape(ShapeType.)

Create a new shape, fails if type is unknown.

Return

the created shape's handle.

Parameters

type

the type of the shape object that shall be created.